package com._21cn.cms.site.web.validator;

import com._21cn.cms.site.entity.RegionObject;
import com._21cn.framework.utils.StringUtil;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;

@Component("regionObjectValidator")
public class RegionObjectValidator implements Validator {

    public boolean supports(Class<?> clazz) {
        return RegionObject.class.equals( clazz );
    }

    public void validate(Object target, Errors errors) {
        RegionObject obj = (RegionObject)target;
        //TODO
    }
}